let express = require('express');
let BlackListAction = require('../../action/blackListAction');
let router = express.Router();

router.post('/create', function (req, res, next) {
    BlackListAction.create(req.body).then(res.res,res.rej);
});
router.post('/list', function (req, res, next) {
    req.body.options = {limit:99999};
    BlackListAction.list(req.body).then(res.res,res.rej);
});
router.post('/delete', function (req, res, next) {
    BlackListAction.deleteBlack(req.body).then(res.res,res.rej);
});

module.exports = router;
